<form class="form-group" #userForm="ngForm" (ngSubmit)="logForm(userForm)" novalidate>
  <div>
    <label for=""><i class="iconfont fxny-icon">&#xe632;</i>
      <input type="text" name="name" [(ngModel)]="user.name" #name="ngModel" required minlength="3" placeholder="请输入您的姓名">
    </label>
  </div>

  <div>
    <label for=""><i class="iconfont fxny-icon icon-tel">&#xe663;</i>
      <input type="text" name="mobile" [ngModel]="user.mobile" placeholder="请输入您的电话" maxlength="11">
    </label>
  </div>
   <!--表单验证
<span *ngIf="userForm.controls.mobile?.pristine" class="label label-primary">未修改</span>
<span *ngIf="userForm.controls.mobile?.dirty" class="label label-warning">已修改</span>
<span *ngIf="userForm.controls.mobile?.valid" class="label label-success">有效</span>
<div [hidden]="userForm.controls.mobile?.valid || userForm.controls.mobile?.pristine" class="alert alert-danger">
    <p *ngIf="userForm.controls.mobile?.errors?.minlength">电话长度必须为11</p>
    <p *ngIf="userForm.controls.mobile?.errors?.required">必须输入电话</p>
</div>
-->
  <div>
    <label for=""><i class="iconfont fxny-icon icon-map">&#xe61b;</i>
      <input type="text" name="city" [ngModel]="user.address.city" placeholder="请选择您的地区">
    </label>
  </div>
</form>
<div class="overflow">
   <button type="submit"><span>下一步</span><i class="iconfont fxny-icon icon-map">&#xe61b;</i></button>
</div>
